计算机与现代化 ›› 2011, Vol. 1 ›› Issue (11): 162-4.doi: 10.3969/j.issn.1006-2475.2011.11.042

• 应用与开发 • 上一篇    下一篇

集中式P2P文件共享系统的设计与实现

何怀文,夏百战   

  1. 电子科技大学中山学院计算机学院,广东中山528402
  • 收稿日期:2011-07-11 修回日期:1900-01-01 出版日期:2011-11-28 发布日期:2011-11-28

Design and Implementation of Filesharing System Based on Centralized P2P

HE Huai-wen, XIA Bai-zhan   

  1. School of Computer, Zhongshan Institute, University of Electronic Science and Technology of China, Zhongshan 528402, China
  • Received:2011-07-11 Revised:1900-01-01 Online:2011-11-28 Published:2011-11-28

摘要:

首先研究并讨论目前流行的P2P技术的特点,然后提出一种基于集中式P2P的文件共享系统的设计,系统中的索引服务器用于存储资源的目录和相关信息,而文件的上传和下载则在各个节点之间完成,最后给出基于Java语言的系统实现原型。该系统采用XML标准的消息机制,易于扩展新的功能,使用多线程等技术实现文件的上传、下载、搜索、权限管理等功能。该系统可应用于企业内部用户文件资源的共享,降低企业的存储成本。

关键词: P2P, XML, 文件共享, 索引服务器, 集中式

Abstract:

This paper, firstly, researches and discusses the feature of currently popular P2P technology. Secondly, designes a filesharing system based on centralized P2P which storing catalog of resource in index server, and downloading or uploading file between each node. At last, one prototyping system is implemented by Java language. This system uses XML for encapsulating message, and uses multithread socket to transfer file. It can be used for enterprise internal file sharing which reduces storage cost.

Key words: P2P, XML, filesharing, index server, centralize